package com.sicnu.cheer.leaugebar.managemodule.activity;

import android.content.Intent;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.sicnu.cheer.leaugebar.managemodule.R;
import com.sicnu.cheer.generalmodule.activity.BaseActivity;

public class RecruitMainActivity extends BaseActivity implements View.OnClickListener {


    private LinearLayout filterPersonLL;

    @Override
    public int getContentViewId() {
        return R.layout.activity_recruit_main;
    }

    @Override
    protected void initView() {
        super.initView();
        findViewById(R.id.back).setOnClickListener(this);
        ((TextView) findViewById(R.id.title)).setText("入社&纳新");
        findViewById(R.id.apply_to_join).setOnClickListener(this);

        if (getIntent().getBooleanExtra("isManager", false)) {
            filterPersonLL = ((LinearLayout) findViewById(R.id.filter_person));
            filterPersonLL.setVisibility(View.VISIBLE);
            filterPersonLL.setOnClickListener(this);
        }

    }


    @Override
    public void onClick(View v) {
        if (v.getId() == R.id.back) {
            onBackPressed();
        } else if (v.getId() == R.id.apply_to_join) {
            Intent intent = new Intent(mThis, ApplyJoinLeagueActivity.class);
            startActivity(intent);
        } else if (v.getId() == R.id.filter_person) {
            Intent intent = new Intent(mThis, FilterResumeActivity.class);
            startActivity(intent);
        }
    }
}
